package com.example.lvsuo.controller.cxg;


import com.example.lvsuo.entity.cxg.AdmComplain;
import com.example.lvsuo.entity.cxg.vo.AdmComplainVo;
import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.cxg.IAdmComplainService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * 建议投诉
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/admComplain")
public class AdmComplainController {

    @Autowired
    IAdmComplainService iAdmComplainService;


    @GetMapping
    public Result queryAdmComplain(AdmComplainVo admComplainVo){
        PageHelper.startPage(admComplainVo.getPageCur(),admComplainVo.getPageSize());
        PageInfo pageInfo = new PageInfo(iAdmComplainService.queryAdmComplain(admComplainVo));


        return Result.back("ok","20000",pageInfo);
    }




}

